#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>

int main(int argc, const char *argv[]) {

    int tcp_socket;
    struct sockaddr_in srcaddr, destaddr;


    tcp_socket = socket(AF_INET, SOCK_STREAM, 0);
    if(tcp_socket == -1) {
        perror("fail to socket\n");
        exit(1);
    }
    if(-1 == listen(tcp_socket, 5)) {
        perror("fail to listen\n");
        exit(1);
    }

    srcaddr.sin_family = AF_INET;
    srcaddr.sin_port = ;
    srcaddr.sin_addr.s_addr = "";
    int lenSrc = sizeof(srcaddr);

    while(1) {
        int accept(tcp_socket, (struct sockaddr *)&srcaddr, &lenSrc);

    }


}

